how to find the position of indexes of non zero elements in a matrix in matlab